翻訳と辞書
Words near each other
・ VISP
・ Visp
・ Visp (district)
・ Visp railway station
・ Visperad
・ Visperterminen
・ Visperud
・ Vispipuuro
・ Vispop
・ VISQ
・ Visqueen
・ Visitor center
・ Visitor health insurance
・ Visitor information assistant
・ Visitor management
Visitor pattern
・ Visitor Q
・ Visitors (2003 film)
・ Visitors (2013 film)
・ Visitors (Buffy novel)
・ Visitors (play)
・ Visitors (song)
・ Visitors (V franchise)
・ Visitors Chapel AME
・ Visitors from London
・ Visitors from Oz
・ Visitors from the Galaxy
・ Visitors Information Center (Portland, Oregon)
・ Visitors' Challenge Cup
・ Visits to St. Elizabeths


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Visitor pattern : ウィキペディア英語版
Visitor pattern

In object-oriented programming and software engineering, the visitor design pattern is a way of separating an algorithm from an object structure on which it operates. A practical result of this separation is the ability to add new operations to existing object structures without modifying those structures. It is one way to follow the open/closed principle.
In essence, the visitor allows one to add new virtual functions to a family of classes without modifying the classes themselves; instead, one creates a visitor class that implements all of the appropriate specializations of the virtual function. The visitor takes the instance reference as input, and implements the goal through double dispatch.
==Definition==
The Gang of Four defines the Visitor as:
The nature of the Visitor makes it an ideal pattern to plug into public APIs thus allowing its clients to perform operations on a class using a “visiting” class without having to modify the source.〔http://blog.coreycoogan.com/2009/06/16/visitor-pattern-real-world-example/〕

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Visitor pattern」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.